<%--
  Created by IntelliJ IDEA.
  User: lx
  Date: 2019/05/27
  Time: 20:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>添加员工</title>
    <script>
        function revers() {
            window.location.href = "/dl/toadd";
        }
    </script>

    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/layui/css/layui.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/personal.css" media="all">
</head>
<body>
<H2 align="center">添加员工</H2>
<br>
<input type="text" hidden value="${check}" id="check"/>
<script>
    var a = document.getElementById("check");
    if (a.value == "error") alert("添加重复");
</script>
<section class="layui-larry-box">
    <form class="layui-form" action="/dl/DimissionTadd">
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">员工编号</label>
            <div class="layui-input-block">
                <input type="text" name="empid" required lay-verify="required" autocomplete="off" placeholder="请输入编号"
                       class="layui-input">
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <input name="empname" placeholder="请输姓名" required lay-verify="required" autocomplete="off"
                       class="layui-input" type="text"><span>${yes}</span><span>${no}</span>
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">部门</label>
            <div class="layui-input-block">
                <select name="departId">
                    <option value="">--请选择--</option>
                    <c:forEach items="${deptAll}" var="da">
                        <option value="${da.id}">${da.dname}</option>
                    </c:forEach>
                </select>
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input disabled name="nation" value="离职" lay-verify="required" class="layui-input" type="text">
                <input name="isStatus" value="3" placeholder="" class="layui-input search_input" type="text" hidden>
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">英文名</label>
            <div class="layui-input-block">
                <input name="englishname" placeholder="请输入英文名" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">曾用名</label>
            <div class="layui-input-block">
                <input name="nameusedbefore" placeholder="请输入曾用名" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">性别</label>
            <input type="radio" name="sex" value="男" title="男">
            <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><span>男</span>
            </div>
            <input type="radio" name="sex" value="女" title="女">
            <div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><span>女</span></div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">身份证号</label>
            <div class="layui-input-block">
                <input name="idcard" placeholder="请输入身份证号" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">出生日期</label>
            <div class="layui-input-block">
                <input type="date" placeholder="请输入出生日期" required lay-verify="required" class="layui-input"
                       name="birthday">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">籍贯</label>
            <div class="layui-input-block">
                <input name="natives" placeholder="请输入籍贯" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">民族</label>
            <div class="layui-input-block">
                <input name="nation" placeholder="请输入民族" required lay-verify="required" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">政治面貌</label>
            <div class="layui-input-block">
                <input name="poleticalstatus" placeholder="请输入政治面貌" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">宗教信仰</label>
            <div class="layui-input-block">
                <input name="religiousbelief" placeholder="请输入宗教信仰" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">健康状况</label>
            <div class="layui-input-block">
                <input name="healthcondition" placeholder="请输入健康状况" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">移动电话</label>
            <div class="layui-input-block">
                <input name="mobilephone" placeholder="请输入移动电话" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">婚姻状况</label>
            <input type="radio" name="maritalstatus" value="已婚" title="已婚">
            <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><span>已婚</span>
            </div>
            <input type="radio" name="maritalstatus" value="未婚" title="未婚">
            <div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><span>未婚</span></div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">工资账号</label>
            <div class="layui-input-block">
                <input name="wagesaccount" placeholder="请输入工资账号" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">社保账号</label>
            <div class="layui-input-block">
                <input name="socialsecuritynumbers" placeholder="请输入社保账号" required lay-verify="required"
                       class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">参加工作时间</label>
            <div class="layui-input-block">
                <input name="partworktime" placeholder="请输入参加工作时间" required lay-verify="required" class="layui-input"
                       type="date">
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">进入单位时间</label>
            <div class="layui-input-block">
                <input name="entertime" placeholder="请输入进入单位时间" required lay-verify="required" class="layui-input"
                       type="date">
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">户口所在地</label>
            <div class="layui-input-block">
                <input name="place" placeholder="请输入户口所在地" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">学历</label>
            <div class="layui-input-block">
                <select name="education" class="newsLook" lay-filter="browseLook">
                    <option value="">--请选择--</option>
                    <option value="小学">小学</option>
                    <option value="初中">初中</option>
                    <option value="高中">高中</option>
                    <option value="大学">大学</option>
                    <option value="高等">高等</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">职称</label>
            <div class="layui-input-block">
                <select name="jobId" class="newsLook" lay-filter="browseLook">
                    <option value="">--请选择--</option>
                    <c:forEach items="${jobAll}" var="ja">
                        <option value="${ja.id}">${ja.name}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">办公电话</label>
            <div class="layui-input-block">
                <input name="officephone" placeholder="请输入办公电话" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>

        <div class="layui-form-item col-lg-5">
            <label class="layui-form-label">住宅电话</label>
            <div class="layui-input-block">
                <input name="homephone" placeholder="请输入住宅电话" required lay-verify="required" class="layui-input"
                       type="text">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-filter="formDemo">立即提交</button>
                <button onclick="revers()" class="layui-btn"><i class="iconfont icon-beifen"></i>刷新</button>
            </div>
        </div>
    </form>
    <script type="text/javascript" src="${pageContext.request.contextPath}/common/layui/layui.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/newsadd.js"></script>

</section>
</body>
</html>
